package com.wolf.core;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @auth: dylan
 * @Desc:
 * @Time: 2024/4/29
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Header implements Serializable {
    /**
     * 魔术值
     */
    private short magic;

    /**
     * 请求指令
     */
    private short command;

    /**
     * 请求序列id
     */
    private long serialId;

    /**
     * 序列化类型
     */
    private byte serialType;

    /**
     * 请求数据长度
     */
    private int dataLength;
}
